/*
 * PratamaWijaya.com
 * set.mnemonix@gmail.com
 * Define.java
 * AndEngineGamePanjatPinang
 * 6:46:46 PM 2012
 */

package com.amikomgamedev.panjatpinang;

public interface Define {
	public static final int			GAME_RATIO_SCREEN_HEIGHT	= 480;
	public static final int			GAME_RATIO_SCREEN_WIDTH		= 320;

	public static final int			GAME_SCREEN_WIDTH_SMALL		= 240;
	public static final int			GAME_SCREEN_HEIGHT_SMALL	= 320;

	public static final int			GAME_SCREEN_WIDTH_NORMAL	= 320;
	public static final int			GAME_SCREEN_HEIGHT_NORMAL	= 480;

	public static final int			GAME_SCREEN_WIDTH_LARGE		= 480;
	public static final int			GAME_SCREEN_HEIGHT_LARGE	= 800;

	public static final int			GAME_SCREEN_WIDTH_XLARGE	= 800;
	public static final int			GAME_SCREEN_HEIGHT_XLARGE	= 1280;

	public static final int			GAME_SCREEN_WIDTH			= (Config.GAME_RES_USE == Config.GAME_RES_MINI) ? GAME_SCREEN_WIDTH_SMALL
																		: (Config.GAME_RES_USE == Config.GAME_RES_MID) ? GAME_SCREEN_WIDTH_NORMAL
																				: (Config.GAME_RES_USE == Config.GAME_RES_HD) ? GAME_SCREEN_WIDTH_LARGE
																						: (Config.GAME_RES_USE == Config.GAME_RES_XLARGE) ? GAME_SCREEN_WIDTH_XLARGE
																								: GAME_SCREEN_WIDTH_NORMAL;

	public static final int			GAME_SCREEN_HEIGHT			= (Config.GAME_RES_USE == Config.GAME_RES_MINI) ? GAME_SCREEN_HEIGHT_SMALL
																		: (Config.GAME_RES_USE == Config.GAME_RES_MID) ? GAME_SCREEN_HEIGHT_NORMAL
																				: (Config.GAME_RES_USE == Config.GAME_RES_HD) ? GAME_SCREEN_HEIGHT_LARGE
																						: (Config.GAME_RES_USE == Config.GAME_RES_XLARGE) ? GAME_SCREEN_HEIGHT_XLARGE
																								: GAME_SCREEN_HEIGHT_NORMAL;

	// untuk spr main menu
	public static final int			SPR_MAIN_MENU_ROW			= 1;
	public static final int			SPR_MAIN_MENU_COLUMN		= 5;

	// gerakan bg main menu
	public static final int[][]		SPR_MAIN_MENU_FRAME			= { { 0, 1, 2,
			3, 4												} };

	public static final long[][]	SPR_MAIN_MENU_SPEED			= { { 100, 100,
			100, 100, 100										} };

	// state buat main char
	public static final int			MC_STATE_BERDIRI			= 0;
	public static final int			MC_STATE_NAIK				= 1;
	public static final int			MC_POS_RIGHT				= 2;
	public static final int			MC_POS_LEFT					= 3;

	public static final int			SPR_MC_ROW					= 5;
	public static final int			SPR_MC_COLUMN				= 5;

	public static final int			SPR_MC_LOMPAT_ROW			= 1;
	public static final int			SPR_MC_LOMPAT_COLUMN		= 9;

	public static final int			BJ_TYPE_EMBER				= 0;
	public static final int			BJ_TYPE_KERDUS				= 1;
	public static final int			BJ_TYPE_MAGIC_JAR			= 2;
	public static final int			BJ_TYPE_PAYUNG				= 3;
	public static final int			BJ_TYPE_TAS					= 4;

	public static final int			SPR_ANIME_NAIK				= 0;
	public static final int			SPR_ANIME_SWAP				= 1;
	public static final int			SPR_ANIME_LOMPAT			= 2;
	public static final int			SPR_ANIME_IDLE				= 3;
	public static final int			SPR_ANIME_SAKIT				= 4;

	public static final float		CHAR_MOVE_SPEED				= 2f;															// pixel
	public static final float		MAP_MOVE_SPEED				= 10f;															// pixel

	// posisi jatuh benda
	public static final int			POS_X_LEFT_BJ				= Utils.getRatioW(35);
	public static final int			POS_X_RIGHT_BJ				= Utils.getRatioW(200);

	// kecepatan penurunan mc atau indikator
	public static final float		PENURUNAN_PIXEL_EASY		= 0.25f;
	public static final float		PENURUNAN_PIXEL_MEDIUM		= 0.4f;
	public static final float		PENURUNAN_PIXEL_HIGH		= 0.5f;

	// kecepatan penurunan map
	public static final float		PENURUNAN_MAP_EASY			= 1.25f;
	public static final float		PENURUNAN_MAP_MEDIUM		= 2f;
	public static final float		PENURUNAN_MAP_HIGH			= 2.5f;

	// gerakan mc
	public static final int[][]		SPR_MC_ANIM_FRAME			= {
			{ 9, 10, 11, 12, 13 }, // naik
			{ 13, 14, 15, 16, 17 }, // swap
			{ 0, 1, 2, 3, 4, 5, 6, 7, 8 }, // lompat
			{ 8, 9 }, // lompat
			{ 18, 19, 20 }

																};
	public static final long[][]	SPR_MC_SPEED				= {
			{ 100, 100, 100, 100, 100 }, // speed naik
			{ 100, 100, 100, 100, 100 }, // speed pindah
			{ 100, 100, 100, 100, 100, 100, 100, 100, 100 }, // speed lompat
			{ 100, 100 }, { 100, 100, 100 }

																};

	// gameplay HUD
	public static final float[]		BUTTON_PANJAT_POS			= {
			Utils.getRatioW(230), Utils.getRatioH(400)			};

	public static final float[]		BUTTON_SWITCH_POS			= {
			Utils.getRatioW(10), Utils.getRatioH(400)			};

	public static final int[]		MAIN_CHAR_POS				= {
			Utils.getRatioW(80), Utils.getRatioH(160)			};

	public static final int[]		MAIN_CHAR_POS_SWAP			= {
			Utils.getRatioW(-36), // left pos
			Utils.getRatioW(80)								// right pos

																};

	// letak menu button
	public static final int[]		BUTTON_PLAY_POS				= {
			Utils.getRatioW(20), Utils.getRatioH(280)			};

	public static final int[]		BUTTON_CREDIT_POS			= {
			Utils.getRatioW(20), Utils.getRatioH(368)			};

	public static final int[]		BUTTON_SCORE_POS			= {
			Utils.getRatioW(98), Utils.getRatioH(325)			};

	public static final int[]		BUTTON_HELP_POS				= {
			Utils.getRatioW(113), Utils.getRatioH(414)			};

	public static final int[]		TIME_SCORE_POS				= {
			Utils.getRatioW(10), Utils.getRatioH(20)			};

	// letak score / timer
	public static final int[]		TXT_YOUR_SCORE_POS			= {
			Utils.getRatioW(120), Utils.getRatioH(267)			};

	public static final int[]		TXT_HIGH_SCORE_POS			= {
			Utils.getRatioW(120), Utils.getRatioH(310)			};

}
